\fc1\cf1 How do I use the arguments to the various HashTable methods? I don't understand the mechanics of HashTable storage for my data.\
\i \
\i0 A: The following code snippet shows how the arguments to the various HashTable methods should be used. Note that even though data can be stored in the hash table as
\b int
\b0 ,
\b char *
\b0 ,
\b id
\b0 ,
\b void *
\b0 , or any other 32-bit quantity that can be described by a type string, the arguments of the hash table methods, such as\
\b insertKey:value:
\b0 ,
\b nextState:key:value
\b0 ,
\b valueForKey:
\b0 have to be cast to void * or const void * respectively. See the documentation on HashTable for more details. \
\
\f1\fs24 static char *month_name[]=\{\
"january", "february", "march",\
"april", "may", "june",\
"july", "august", "september",\
"october", "november", "december" \};\
\f0\fs28 \
\f1\fs24 - hashTableTest:sender\
\{\
NXHashState state; \
const void *key;\
void *val;\
id table;\
\
unsigned count = 0;\
\
\
/* Allocate a hash table with the capacity of 12 entries. The Key\